<template>
    <h3>ParentEvent</h3>
    <ChildEvent @someEvent="handleSomeEvent" />
    <p>父元素：{{ message }}</p>
</template>
<script>
import ChildEvent from './ChildEvent.vue'
export default {
    data(){
        return{
            message : "",
        }
    },
    components:{
        ChildEvent
    },
    methods:{
        handleSomeEvent(data){
            console.log("触发了....", data)
            this.message = data;
        }
    }
}
</script>